﻿@model Commission.Models.Customer
@using MyResources = Commission.Resources.AppResource

@{
    ViewBag.Title = @MyResources.LabelDelete;
}

<style type="text/css">
    dt {
        float: left;
        width: 100px;
        padding: 4px;
        text-align: left;
    }

    dd {
        margin-left: 100px;
        padding: 4px;
    }
</style>

<h3>@MyResources.ConfirmDelete</h3>
<div>
    <h4>@MyResources.LabelCustomer</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @MyResources.LabelName
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Name)
        </dd>

        <dt>
            @MyResources.LabelCustomerType
        </dt>

        <dd>
            @Html.DisplayFor(model => model.CustomerType.TypeName)
        </dd>

        <dt>
            @MyResources.LabelSponsorCustomer
        </dt>

        <dd>
            @Html.DisplayFor(model => model.SponsorCustomer.Name)
        </dd>

        <dt>
            @MyResources.LabelParentCustomer
        </dt>

        <dd>
            @Html.DisplayFor(model => model.ParentCustomer.Name)
        </dd>

        <dt>
            @MyResources.LabelBirthday
        </dt>

        <dd>
            @Html.DisplayFor(model => model.BirthDay)
        </dd>

        <dt>
            @MyResources.LabelAttendantDate
        </dt>

        <dd>
            @Html.DisplayFor(model => model.AttendantDate)
        </dd>

    </dl>

    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
            <input type="submit" value="@MyResources.LabelDelete" class="btn btn-default" /> |
            @Html.ActionLink(@MyResources.LinkBackToList, "Index")
        </div>
    }
</div>
